package org.tissou.client.Services;

import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.core.client.GWT;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 17-May-2009
 * Time: 10:53:07
 * To change this template use File | Settings | File Templates.
 */
public interface EnsembleMonnaies extends RemoteService {
  List<MonnaieInfos> donnerListeMonnaies();

  /**
   * Utility/Convenience class.
   * Use EnsembleMonnaies.App.getInstance() to access static instance of EnsembleMonnaiesAsync
   */
  public static class App {
    private static final EnsembleMonnaiesAsync ourInstance;

    static {
      ourInstance = (EnsembleMonnaiesAsync) GWT.create(EnsembleMonnaies.class);
      ((ServiceDefTarget) ourInstance).setServiceEntryPoint(GWT.getModuleBaseURL() + "EnsembleMonnaies");
    }

    public static EnsembleMonnaiesAsync getInstance() {
      return ourInstance;
    }
  }
}
